home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / local / sbin / restart-vidalia < prev    next >
Encoding:
Text File  |  2013-01-10  |  376 b   |  14 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # Get LIVE_USERNAME, whose instance we want to restart
  6. . /etc/live/config.d/username.conf
  7.  
  8. if killall vidalia 2> /dev/null; then
  9.    sleep 2 # give lckdo a chance to release the lockfile
  10. fi
  11. export DISPLAY=':0.0'
  12. export XAUTHORITY="`echo /var/run/gdm3/auth-for-${LIVE_USERNAME}-*/database`"
  13. exec /bin/su -c /usr/local/bin/vidalia-wrapper "${LIVE_USERNAME}" &
  14.